<?php

class TestController extends Controller {

    public function actionTest() {
        $a = array(
            "1" => "aa",
            "2" => "bb",
            "3" => "cc"
        );
        $b = array(
            "key1" => "aa",
            "key2" => "hh",
            "key6" => "jj"
        );

        // $c = CMap::mergeArray($a, $b);
        $c = CMap::mergeArray($a, $b);
        echo "<pre>";
//        print_r($c);
//        print_r(CMap::getkeys($a));

        echo "</pre>";

        $map = new CMap();
        $map->add("key1", "aaaa");
        $map->add("key2", "aaaa");
        $map->add("key3", "aaaa");
        $map->add("key4", "aaaa");
        echo "<pre>";
        print_r($map->clear());
        print_r($map->getKeys());        
              
        echo "</pre>";
        echo CHtml::textArea("testarea","",array("id"=>"area","class"=>"hh","placeholder"=>"hsash","style"=>"color:red;background:black"));
        
      //  echo CJson::encode($a);
        
         $criteria = new CDbCriteria;        //函数方式  
 
         
         return new CActiveDataProvider($this, array(
			'criteria' => $criteria,
		));
    }

}
